package com.common;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:test-configs.xml")
public class JunitCommon {
	private static long startDateTime;
	
	@BeforeClass
	public static void testStart() {
		startDateTime = System.currentTimeMillis();
	}
	
	@Test
	public final void testRun(){
		System.out.println("runed");
	}
	
	@AfterClass
	public static void testEnd() {
		System.out.println("run cases take datetime(ms): "+(System.currentTimeMillis()-startDateTime));
	}
}
